import React, { Component } from 'react'

export default class Father extends Component {
    state = {
        count: 100
    }
    render() {
        const { count } = this.state
        return (
            <div>
                <p onClick={() => {
                    this.setState({
                        count: count + 1
                    })
                }}>count:{count}</p>
            </div>
        )
    }
    componentDidUpdate(props, state) {
        console.log('componentDidUpdate');
    }

}
